package model;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class getDate 
{
	static String months[] = {"January", "Febuary", "March", "April",
	"May", "June", "July", "August",
	"September", "October", "November", "December"};
	int year;
	static GregorianCalendar gcalendar = new GregorianCalendar();
	public static String date()
	{
		String a=gcalendar.get(Calendar.DATE) 
				+ "   " + months[gcalendar.get(Calendar.MONTH)] + "   " +gcalendar.get(Calendar.YEAR);
		return a;
	}      
	public String time()
	{
		String a=gcalendar.get(Calendar.HOUR)+ ":" + gcalendar.get(Calendar.MINUTE);
		return a;
	}
}
